<?php
session_start();
include 'recursos.php';
$id = $_SESSION["idUsuario"];
$idLiga = $_GET['idLiga'];
$result = obtenerJugadoresLiga($idLiga);


if ($result) {
    echo "lalala";
    ?>
    <META HTTP-EQUIV="REFRESH" CONTENT="2,URL=menuliga.php?idLiga=<?php echo $idLiga ?>">
    <?php
} else {
    echo "Error, intentelo de nuevo.";
    ?>
    <META HTTP-EQUIV="REFRESH" CONTENT="2,URL=menuliga.php?idLiga=<?php echo $idLiga ?>">
    <?php
}
?>

